Closed Bug 1106665 Opened 11 years ago Closed 10 years ago

text-align:justify doesn't work in vertical writing-mode

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: jfkthame, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

See attached testcase. The "justify" option works fine horizontally, but does nothing vertically.
This one's a trivial fix. :)
Attachment #8531016 - Flags: review?(smontagu)
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Simplified by using mFrame->ISize().
Attachment #8531292 - Flags: review?(smontagu)
Attachment #8531016 - Attachment is obsolete: true
Attachment #8531016 - Flags: review?(smontagu)
Comment on attachment 8531016 [details] [diff] [review] Fix text-align:justify for vertical writing modes Review of attachment 8531016 [details] [diff] [review]: ----------------------------------------------------------------- ::: layout/generic/nsTextFrame.cpp @@ +3391,5 @@ > naturalWidth += GetHyphenWidth(); > } > + mJustificationSpacing = > + (mTextRun->IsVertical() ? mFrame->GetSize().height > + : mFrame->GetSize().width) - naturalWidth; mJustificationSpacing = mFrame->ISize() - naturalWidth;
Attachment #8531016 - Attachment is obsolete: false
Comment on attachment 8531292 [details] [diff] [review] Fix text-align:justify for vertical writing modes Review of attachment 8531292 [details] [diff] [review]: ----------------------------------------------------------------- r=me with that change
Attachment #8531292 - Flags: review?(smontagu) → review+
Attachment #8531016 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: